name: pipeline

---
name: a

resources:
  cloud: gcp
  zone: us-east4-b
  cpus: 2+

run: |
  echo train starts
  echo SKYPILOT_TASK_ID: $SKYPILOT_TASK_ID
  echo SKYPILOT_TASK_IDS
  echo "$SKYPILOT_TASK_IDS"
  sleep 10000
  echo train ends

---
name: b

setup: |
  echo setup for train
  sleep 20

run: |
  echo train starts
  sleep 20
  echo train ends

---

name: eval1

setup: |
  echo setup for eval
  sleep 20

run: |
  echo eval starts
  sleep 20
  echo eval ends

---

name: eval2

setup: |
  echo setup for eval
  sleep 20

run: |
  echo eval starts
  sleep 20
  echo eval ends
